lib/repo-finder: Add config-file based OstreeRepoFinder implementation
authorPhilip Withnall <withnall@endlessm.com>
Tue, 18 Apr 2017 23:05:06 +0000 (00:05 +0100)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 26 Jun 2017 15:56:07 +0000 (15:56 +0000)
commitd15f83c9223a48454fafd47b41cf9bf2e4e4da72
tree247829bb8611712bd7bba2a9be659cf9929bd698
parent292230301dde3c774325d50b5ed95d37b1c1d217
lib/repo-finder: Add config-file based OstreeRepoFinder implementation

This is a basic implementation of OstreeRepoFinder which resolves ref
names to remote URIs by looking their collection IDs up in the local
configuration of remotes who have their collection-id key set.

Unit tests are included.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Closes: #924
Approved by: cgwalters
13 files changed:
Makefile-libostree-defines.am
Makefile-libostree.am
Makefile-tests.am
apidoc/ostree-experimental-sections.txt
src/libostree/libostree-experimental.sym
src/libostree/ostree-autocleanups.h
src/libostree/ostree-core-private.h
src/libostree/ostree-repo-finder-config.c [new file with mode: 0644]
src/libostree/ostree-repo-finder-config.h [new file with mode: 0644]
src/libostree/ostree-repo-pull.c
src/libostree/ostree.h
tests/.gitignore
tests/test-repo-finder-config.c [new file with mode: 0644]